package com.meilai.project.mapper.business.customer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.business.customer.CustomerFollowDTO;
import com.meilai.project.entity.business.customer.CustomerFollow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客户跟进信息表 Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2022-01-06
 */
public interface CustomerFollowMapper extends BaseMapper<CustomerFollow> {

    List<CustomerFollowDTO> page(@Param("page") Page<CustomerFollowDTO> page, @Param("customer_id") Long customer_id);

    List<String> getHistoryUser(@Param("customer_id") Long customer_id);

    List<CustomerFollow> queryLatestRecord(@Param("ids") List<Long> customer_ids);
}
